<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<jsp:useBean id="u2" class="javabean.data.User" scope="page"/>
<html>
  <head>   
    <title>登陆系统</title>
  </head>  
  <body>
  
  <%request.setCharacterEncoding("utf-8"); %>
  
  <h2>欢迎登录</h2>
  <form action="" method="post">
  	<p>姓名：<input type="text" name="username" size="10"></p>
  	<p>密码：<input type="password" name="password" size="10"></p>
  	<p><input type="submit" name="submit" value="提交">&nbsp;&nbsp;
  	   <input type="reset" name="reset" value="重置">
    </p>
  </form>
  
 	<jsp:setProperty name="u2" property="*"/>
 	
    <p>姓名：<jsp:getProperty name="u2" property="username"/></p>
    <p>密码：<jsp:getProperty name="u2" property="password"/></p> 
  </body>
</html>


